package jsyf.oa.dao.system;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.system.TargetRoleEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by WHH-PC on 2018/1/26.
 */
@Repository
public class TargetRoleDao extends BaseDao{

    public TargetRoleDao() {
        super.iBaseEntity = new TargetRoleEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, TargetRoleEntity.class);
    }
}
